/**
 * Project: common-domain
 * Created: 2016年8月23日
 * Copyright ©2011-2016 gopay Information Technology Co., LTD All Rights Reserved
**/
package com.gopay.common.domain.cbrmb.draw;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 非工作流审批辅助表实体
 * @ClassName: CbrmbApprAssist
 * @Description: 
 * @author junjie.ge
 * @date 2016年8月23日 下午1:10:01
 */
@Entity
@Table(name = "CB_RMB_APPR_ASSIST")
public class CbrmbApprAssist implements Serializable {
    private static final long serialVersionUID = -3218924796514015207L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "cbrmbApprAssistSeq")
    @SequenceGenerator(name = "cbrmbApprAssistSeq", sequenceName = "CB_RMB_APPR_ASSIST_SEQ")
    @Column(name = "ID", nullable = false, unique = true)
    private Long id; //主键
    @Column(name="GOPAY_INT_TXN_CODE", length=8)
    private String intTxnCode;//交易码
    @Column(name="GOPAY_MAIN_ORDER_ID",length=32)
    private String gopayOrderId;//主订单ID
    @Column(name="OPERATOR_ID",length=30)
    private String optId;//操作员ID
    @Column(name="AUDIT_RESULT",length=1)
    private String auditResult;//审批状态: 1 - 通过; 0 - 拒绝
    @Column(name="AUDIT_REMARK",length=800)
    private String auditRemark;//审批意见
    @Column(name="ORDER_TYPE",length=2)
    private String orderType;//订单类型: 00 - 付款类订单; 01 - 退款类订单;
    @Column(name="ORDER_STATUS",length=10)
    private String orderStatus;//订单状态: 订单状态码
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATE_TIME")
    private Date createTime;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="LAST_UPDATE_TIME")
    private Date lastUpdateTime;
    @Column(name="LAST_UPDATE_TXN_CODE",length=8)
    private String lastUpdateTxnCode;

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the intTxnCode
     */
    public String getIntTxnCode() {
        return intTxnCode;
    }

    /**
     * @param intTxnCode
     *            the intTxnCode to set
     */
    public void setIntTxnCode(String intTxnCode) {
        this.intTxnCode = intTxnCode;
    }

    /**
     * @return the gopayOrderId
     */
    public String getGopayOrderId() {
        return gopayOrderId;
    }

    /**
     * @param gopayOrderId
     *            the gopayOrderId to set
     */
    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    /**
     * @return the optId
     */
    public String getOptId() {
        return optId;
    }

    /**
     * @param optId
     *            the optId to set
     */
    public void setOptId(String optId) {
        this.optId = optId;
    }

    /**
     * @return the auditResult
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistAuditResult.PASS.getValue()
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistAuditResult.REJECT.getValue()
     */
    public String getAuditResult() {
        return auditResult;
    }

    /**
     * @param auditResult
     *            the auditResult to set
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistAuditResult.PASS.getValue()
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistAuditResult.REJECT.getValue()
     */
    public void setAuditResult(String auditResult) {
        this.auditResult = auditResult;
    }

    /**
     * @return the auditRemark
     */
    public String getAuditRemark() {
        return auditRemark;
    }

    /**
     * @param auditRemark
     *            the auditRemark to set
     */
    public void setAuditRemark(String auditRemark) {
        this.auditRemark = auditRemark;
    }

    /**
     * @return the orderType
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistOrderType.PAY.getValue()
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistOrderType.REFUND.getValue()
     */
    public String getOrderType() {
        return orderType;
    }

    /**
     * @param orderType
     *            the orderType to set
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistOrderType.PAY.getValue()
     * @see com.gopay.common.constants.cbrmb.CbrmbApprAssistOrderType.REFUND.getValue()
     */
    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    /**
     * @return the orderStatus
     */
    public String getOrderStatus() {
        return orderStatus;
    }

    /**
     * @param orderStatus
     *            the orderStatus to set
     */
    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     *            the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return the lastUpdateTime
     */
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    /**
     * @param lastUpdateTime
     *            the lastUpdateTime to set
     */
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    /**
     * @return the lastUpdateTxnCode
     */
    public String getLastUpdateTxnCode() {
        return lastUpdateTxnCode;
    }

    /**
     * @param lastUpdateTxnCode
     *            the lastUpdateTxnCode to set
     */
    public void setLastUpdateTxnCode(String lastUpdateTxnCode) {
        this.lastUpdateTxnCode = lastUpdateTxnCode;
    }

}
